-- GENERATED SPELL FOR [Ebon Blade Champion] --


function spell0_30703(pUnit, Event) --@Icebound Fortitude,Self--
pUnit:FullCastSpellOnTarget(58130,pUnit)
pUnit:RegisterEvent('Sorts_30703', 12260, 1)
end

function spell1_30703(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30703', 12000, 1)
end

function Sorts_30703(pUnit, Event)
local choix_sorts_30703 = math.random(0, 1)
if choix_sorts_30703 == 0 then
pUnit:RegisterEvent('spell0_30703', 1, 1)
end
if choix_sorts_30703 == 1 then
pUnit:RegisterEvent('spell1_30703', 1, 1)
end
end

function mob30703_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30703', math.random(1500, 3000), 1)
end

function mob30703_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30703_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30703_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30703, 1, 'mob30703_Action')
RegisterUnitEvent(30703, 2, 'mob30703_Leave')
RegisterUnitEvent(30703, 3, 'mob30703_Kill')
RegisterUnitEvent(30703, 4, 'mob30703_Die')
